package com.geo.geotool.service.geofile;

import com.geo.geotool.config.SpringContext;
import com.geo.geotool.entity.geo.GeoFileInfo;
import com.geo.geotool.service.IShpService;

import java.io.File;

/**
 * • @Description: shape文件解析类
 * • @author  : yell
 * • @date : 2021/12/07  11:36
 */
public class ShapeFileParser implements IGeoFileParser {
    @Override
    public GeoFileInfo parserFile(String filePath) throws Exception{
        IShpService iShpService = (IShpService) SpringContext.getBean(IShpService.class);
        return iShpService.parseShp(new File(filePath),null);
    }
}
